package com.iwhalecloud.bss.kite.cucc.dataservice.mapper;

import com.iwhalecloud.bss.kite.cucc.client.dto.attr.ChannelKindDTO;
import com.iwhalecloud.bss.kite.cucc.client.dto.attr.UnicomRegion;
import com.iwhalecloud.bss.kite.cucc.client.dto.devInfo.response.QueryChannelInfoSerRsp;
import com.ztesoft.bss.base.extmapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Interface : UnicomRegionMapper
 * @Description :
 * @Author : xie.zhengjun
 * @Date : 2020/9/18 16:06
 */
public interface UnicomRegionMapper  extends BaseMapper<UnicomRegion> {
    /**
     * 查询根区域（没有父级区域的区域）
     * @return 根区域列表
     */
    List<UnicomRegion> listRootRegion();

    List<UnicomRegion> listSubRegion(@Param("regionCode") String regionCode);

    List<ChannelKindDTO> queryChannel();

    List<ChannelKindDTO> queryChannelByLevel(String channelKindId);

    List<QueryChannelInfoSerRsp> queryChannelByChannelLevel(String chnlKindId);

    void deleteInfAreaInfo(@Param("regionLevel") String regionLevel);
    
    List<UnicomRegion> listRegionByRegionCode(@Param("regionCode") String regionCode);
}
